<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<System.Collections.Generic.IEnumerable<FacebookAcessLibrary.Data.NotificationData>>"
    MasterPageFile="~/Views/Shared/Site.Master" %>

<asp:Content runat="server" ID="MetaTags" ContentPlaceHolderID="MetaTagsContent">
</asp:Content>
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
    <ul>
    <% if (Model != null)
       {%>
        <%
           foreach (var notificationData in Model)
           {%>


        <li>
            <p><%=notificationData.News.Message%></p>
            <%=
                   Html.ActionLink(notificationData.News.Action.Text, "ClearNotification",
                                   new {idUser = notificationData.Key, url = notificationData.News.Action.Href}
                       )
                   %>
        </li>
        <%
           } %>
                
           <%
       }
       else
       {%>
        <p>There are no notifications for you.</p>
        <%
       }%>
        <script type="text/javascript">

            $(function () {
                $('#main a').button().each(function () {
                    $(this).attr("target", "_blank");
                });
            });

        </script>
    </ul>
</asp:Content>
